﻿using System;

namespace TextEditor
{
   

    public class A_SetPageSize : A_Action
    {
        public override string ActionName()
        {
            return "setpagesize";
        }

        public override bool Execute()
        {
            base.myOwnerDocument.Pages.SetPageSize(Convert.ToInt32(base.Param1), Convert.ToInt32(base.Param2));
            base.myOwnerDocument.UpdateViewSize();
            base.myOwnerDocument.RefreshLine();
            base.myOwnerDocument.UpdateView();
            return true;
        }
    }
}

